<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="renderer" content="webkit">
    <!-- TopJUI框架样式 -->
    <link type="text/css" href="/static/topjui/themes/default/topjui.core.min.css" rel="stylesheet">
    <link type="text/css" href="/static/topjui/themes/default/topjui.blue.css" rel="stylesheet" id="dynamicTheme"/>
    <!-- FontAwesome字体图标 -->
    <link type="text/css" href="/static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- layui框架样式 -->
    <link type="text/css" href="/static/plugins/layui/css/layui.css" rel="stylesheet"/>
    <!-- jQuery相关引用 -->
    <script type="text/javascript" src="/static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugins/jquery/jquery.cookie.js"></script>
    <!-- TopJUI框架配置 -->
    <script type="text/javascript" src="/static/public/js/topjui.config.js"></script>
    <!-- TopJUI框架核心-->
    <script type="text/javascript" src="/static/topjui/js/topjui.core.min.js"></script>
    <!-- TopJUI中文支持 -->
    <script type="text/javascript" src="/static/topjui/js/locale/topjui.lang.zh_CN.js"></script>
    <!-- layui框架js -->
    <script type="text/javascript" src="/static/plugins/layui/layui.js" charset="utf-8"></script>
</head>

<body>
<table id="configEdatagrid" data-toggle="topjui-edatagrid"
       data-options="id:'sConfigedatagrid',
       idField:'cfgId',
       reloadAfterSave:true,
       url:'/sConfig/data',
       saveUrl:'/sConfig/save?flag=add',
       updateUrl:'/sConfig/save?flag=edit',
       destroyUrl:'/sConfig/delete'">
    <thead>
    <tr>
        <th data-options="field:'cfgId',title:'ID',width:50"></th>
        <th data-options="field:'cfgKey',title:'参数代码',width:200,editor:{type:'textbox',options:{required:true,height:30}}"></th>
        <th data-options="field:'cfgValue',title:'参数值',width:200,editor:{type:'textbox',options:{required:true,height:30}}"></th>
        <th data-options="field:'cfgName',title:'参数名称',width:200,editor:{type:'textbox',options:{required:true,height:30}}"></th>
        <th data-options="field:'cfgStsText',title:'状态',width:100"></th>
        <th data-options="field:'cfgSts',title:'状态码',width:100,editor:{type:'combobox',options:{height:30,panelHeight:200,
                    url:'/sDic/dics?dicName=ZB_EFFECT_STATUS'}}"></th>
        <!--<th data-options="field:'paramBlock',title:'模块',editor:{type:'textbox',options:{required:true,height:30}}"></th>-->
        <th data-options="field:'updateUser',title:'更新人'"></th>
        <th data-options="field:'updateTime',title:'更新时间'"></th>
    </tr>
    </thead>
</table>

<!-- 表格工具栏 -->
<div id="configEdatagrid-toolbar" data-options="grid:{
           type:'edatagrid',
           id:'configEdatagrid'
       }" class="topjui-toolbar">
    <a href="javascript:void(0)"
       data-toggle="topjui-menubutton"
       data-options="method:'edatagrid',
       extend: '#configEdatagrid-toolbar',
       iconCls:'fa fa-plus',
       btnCls:'topjui-btn-green',
       type:'addRow'">新增</a>
    <a href="javascript:void(0)"
       data-toggle="topjui-menubutton"
       data-options="method:'edatagrid',
       extend: '#configEdatagrid-toolbar',
       iconCls:'fa fa-save',
       btnCls:'topjui-btn-brown',
       type:'saveRow'">保存</a>
    <a href="javascript:void(0)"
       data-toggle="topjui-menubutton"
       data-options="method:'edatagrid',
       extend: '#configEdatagrid-toolbar',
       iconCls:'fa fa-remove',
       btnCls:'topjui-btn-black',
       type:'cancelRow'">取消</a>
    <a href="javascript:void(0)"
       data-toggle="topjui-menubutton"
       data-options="method:'edatagrid',
       extend: '#configEdatagrid-toolbar',
       iconCls:'fa fa-remove',
       btnCls:'topjui-btn-blue',
       type:'destroyRow'">删除</a>

</div>
</body>
</html>